#ifndef CONFIG_H_INCLUDED
#define CONFIG_H_INCLUDED
#define MYSQLPP_MYSQL_HEADERS_BURIED
#define _FILE_OFFSET_BITS 64
#define FUSE_USE_VERSION 27
#define SQLFS_DB "sqlfs"
//#define TABLE_LOGGING
//#define SERVER "127.0.0.1"
//#define USER "root"
//#define PASSWORD "1234"
//#define PORT 3306
extern const char* host;
extern int port;
extern const char* user;
extern char* pass;
extern char* binlog_file;
#define MAX_IDLE_TIME 60
//#define DEBUG
#define LOG_FILE "/dev/null"

#define MAX_OPEN_FILES 1000
#define COLUMN_SEP ','
#define COLUMN_SEP_LEN 1
#define LINE_SEP '\n'
#define LINE_SEP_LEN 1
//limits for the offset table
//we store the start offset and size for each row-block, and assume that they can be kept in memory.
//These limits should be designed so that the in-memory meta data don't exceed 1/1000 of the table in size.
#define MAX_COL_SIZE 0x100 //more than 256 chars wouldn't show up nicely in excel
#define MAX_ROW_SIZE 0x400 //4 max cols, ~1KB
#define ROW_BLOCK_SIZE 0x80000 //amounts to 128 of the max rows, in practice should amount to 10000 rows on average.~320 KB
//#define ROW_BLOCK_SIZE 0x2000L
//#define ROW_BLOCK_SIZE 0x40L
//#define OFFSET_BLOCK_SIZE 0x800000L//16 of the above row-blocks ~5 MB
#define OFFSET_BLOCK_SIZE 0x100000L
//#define OFFSET_BLOCK_SIZE 0xc0L
#define MULTITHREADED_FUSE
//#define ENABLE_MONITOR
#endif //CONFIG_H_INCLUDED
